package com.weasel.weixin.commons.message.bean;

import com.thoughtworks.xstream.annotations.XStreamAlias;

/**被动回复消息(一般用于机器人自动回复)
 * Created by Dylan on 2015/10/9.
 */
@XStreamAlias("xml")
public abstract class AbstractWeiXinPostCommonXmlAnswerMessage {


    public final static String TEXT_MESSAGE_TYPE = "text";  //文本消息
    public final static String IMAGE_MESSAGE_TYPE = "image";  //图片消息
    public final static String VOICE_MESSAGE_TYPE = "voice";  //语音消息
    public final static String VIDEO_MESSAGE_TYPE = "video";  //视频消息
    public final static String LOCATION_MESSAGE_TYPE = "location";  //地理位置消息
    public final static String LINK_MESSAGE_TYPE = "link";  //链接消息
    public final static String MUSIC_MESSAGE_TYPE = "music";//音乐消息
    public final static String ARTICLE_MESSAGE_TYPE = "news";//图文消息


    @XStreamAlias("ToUserName")
    protected String toUserName; //开发者微信号

    @XStreamAlias("FromUserName")
    protected String fromUserName; //发送方帐号（一个OpenID）

    @XStreamAlias("CreateTime")
    protected long createTime; //消息创建时间 （整型）

    @XStreamAlias("MsgType")
    protected String msgType; //消息类型，event

    public String getToUserName() {
        return toUserName;
    }

    public void setToUserName(String toUserName) {
        this.toUserName = toUserName;
    }

    public String getFromUserName() {
        return fromUserName;
    }

    public void setFromUserName(String fromUserName) {
        this.fromUserName = fromUserName;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public String getMsgType() {
        return msgType;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }
}
